Skip to content

Add specialized CCS API Keys for RCS 2.0#95313

Closed
ywangd wants to merge 3 commits intoelastic:mainfrom
ywangd:rcs2-specialized-api-keys
Closed

Add specialized CCS API Keys for RCS 2.0#95313
ywangd wants to merge 3 commits intoelastic:mainfrom
ywangd:rcs2-specialized-api-keys

Conversation

@ywangd
Copy link
Member

@ywangd ywangd commented Apr 18, 2023

Add a new API to create specialized API keys for RCS 2 usages, e.g.

// Request
POST _security/_ccs/api_key
{
  "name": "k2",
  "role_descriptors": {
    "x": {
      "cluster": [ "cross_cluster_access" ],
      "indices": [
        {
          "names": [ "foo" ],
          "privileges": [ "read", "read_cross_cluster" ]
        }
      ]
    }
  }
}

// Response
{
  "id": "Qq9okocBu0QjU-Ce7i_l",
  "name": "k2",
  "encoded": "ccs_UXE5b2tvY0J1MFFqVS1DZTdpX2w6akIxSmpxZEFSR3E0SFRZek5yekJHZw=="
}

Note the ccs_ prefix of the above encoded value. This serves as a visual indicator for the type of specialized API keys.

@gmarouli gmarouli added v8.9.0 and removed v8.8.0 labels Apr 26, 2023
@ywangd
Copy link
Member Author

ywangd commented May 1, 2023

Closing this as we have discussed and agreed a different approach.

@ywangd ywangd closed this May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants